﻿<Controls:MetroWindow x:Class="HmmmIDE.Debug.Debugger"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" 
        xmlns:w="clr-namespace:HmmmIDE.Debug"
        xmlns:local="clr-namespace:HmmmIDE.Debug"
        Title="Debugger" Height="500" Width="800" Closed="Debugger_Closed">
    <Control.CommandBindings>
        <CommandBinding Command="w:Debugger.Continue" CanExecute ="CanExecute" Executed="ContinueDebug" />
        <CommandBinding Command="Stop" CanExecute="CanExecute" Executed="StopDebugging"/>
        <CommandBinding Command="w:Debugger.ExecuteToEnd" CanExecute="CanExecute" Executed="ExecuteToEndMethod"/>
    </Control.CommandBindings>
    <Grid>
        <DockPanel HorizontalAlignment="Stretch" Height="30" LastChildFill="False" Margin="0,4,0,0" VerticalAlignment="Top">
            <Button Width="80" Command="w:Debugger.Continue">Continue</Button>
            <Button Width="80" Command="Stop">Stop</Button>
            <Button Width="120" Command="w:Debugger.ExecuteToEnd">Exeecute To End</Button>
            <Label Name="lblIndicator" Content="Line To Be Executed 0. PC: 0" Height="30" VerticalAlignment="Top"/>
        </DockPanel>
        <ListView Name="RegisterList" HorizontalAlignment="Stretch" Margin="0,40,400,0" VerticalAlignment="Stretch">
            <ListView.View>
                <GridView>
                    <GridViewColumn Header ="Name" DisplayMemberBinding="{Binding Path=Name, UpdateSourceTrigger=PropertyChanged}" Width="200" />
                    <GridViewColumn Header="Current Value" DisplayMemberBinding="{Binding Path=Value, UpdateSourceTrigger=PropertyChanged}" Width="400"/>
                </GridView>
            </ListView.View>
        </ListView>
        <local:Terminal x:Name="IE" HorizontalAlignment="Stretch" Margin="400,40,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Stretch"/>


    </Grid>
</Controls:MetroWindow>
